home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem ------------------------------------------------------------------------
- rem
- rem File: INSTALL.BAT
- rem
- rem Contains: DOS Compatibility
- rem DOS-only installer script.
- rem
- rem Copyright: (C) 1993-94 by Apple Computer, Inc.
- rem All Rights Reserved.
- rem
- rem ------------------------------------------------------------------------
-
- rem ---------------------------------
- rem Setup our variables
- rem ---------------------------------
-
- set srcPath=.\
- set dstPath=C:\Apple
- set aeFlag=0
- set csFlag=0
- set tmpPath=C:\Temp
- set cfgsys=C:\Config.sys
- set autoexec=C:\AutoExec.bat
- set altPath=C:\ALT_CFGS
-
- :StartupScreen
-
- rem ---------------------------------
- rem Put up our copyright
- rem ---------------------------------
-
- cls
- echo:
- echo: Apple DOS Compatibility
- echo: DOS-based Installer
- echo: Copyright (C) 1994 Apple Computer, Inc.
- echo:
-
- rem ---------------------------------
- rem Check for lack of environment
- rem space
- rem ---------------------------------
-
- if not (%autoexec%)==() goto CheckDrive
-
- echo: Error: Out of Environment Space!!
- echo: ---------------------------------
- echo:
- echo: Increase the size of your environment using the
- echo: '/E' switch on COMMAND.COM.
- echo:
- echo: Example CONFIG.SYS:
- echo:
- echo: SHELL=C:\COMMAND.COM /E:512 /P
- echo:
- goto End
-
- :CheckDrive
-
- rem ---------------------------------
- rem Adjust the source path if
- rem we need to, then verify
- rem we've got a good directory
- rem ---------------------------------
-
- if exist %srcPath%GotWin.com goto CheckForWindows
- set srcPath=A:\
- if exist %srcPath%GotWin.com goto CheckForWindows
-
- echo: Error: Can't find files needed for installation
- echo: -----------------------------------------------
- echo:
- echo: Check current drive/directory setting and
- echo: disk availability.
- echo:
- goto End
-
- :CheckForWindows
-
- rem ---------------------------------
- rem If Windows is running, ask
- rem user to run the setup program
- rem instead
- rem ---------------------------------
-
- %srcPath%GotWin
- if not errorlevel 1 goto ExplainInstall
-
- echo: Microsoft Windows is Running
- echo: ----------------------------
- echo: To install the DOS Compatibility files while
- echo: Windows is running, use the Program Manager
- echo: to run A:\SETUP.EXE from the floppy diskette.
- goto End
-
- :ExplainInstall
-
- rem ---------------------------------
- rem Ask the user if they want
- rem to install
- rem ---------------------------------
-
- echo: This program will install into the directory "C:\Apple"
- echo: only those files necessary for operation with DOS.
- echo:
- echo: If you will be running Microsoft Windows,
- echo: please respond no to the question below,
- echo: install Windows first, then run the program
- echo: "A:\SETUP.EXE" from within the Windows Program Manager.
- echo:
-
- :PromptInstall
- echo: Proceed with installation of DOS-only files? (Y/N)
-
- %srcPath%GetKey "YN" 0
- if errorlevel 2 goto AbortInstall
- if errorlevel 1 goto CopyFiles
- goto PromptInstall
-
- :CopyFiles
- echo:
- echo:
-
- rem ---------------------------------
- rem Copy files to dst directory
- rem ---------------------------------
-
- mkdir %dstPath%>NUL
- mkdir %altPath%>NUL
-
- echo: Copying DOSClip.exe to %dstPath%\DOSClip.exe...
- Copy /v %srcPath%DOSClip.exe %dstPath%>NUL
-
- echo: Copying MacShare.com to %dstPath%\MacShare.com...
- Copy /v %srcPath%MacShare.com %dstPath%>NUL
-
- echo: Copying CDROM.sys to %dstPath%\CDROM.sys...
- Copy /v %srcPath%CDROM.sys %dstPath%>NUL
-
- echo: Copying CONFIG.APL to %altPath%\CONFIG.APL...
- Copy /v %srcPath%CONFIG.APL %altPath%>NUL
-
- echo: Copying AUTOEXEC.APL to %altPath%\CONFIG.APL...
- Copy /v %srcPath%AUTOEXEC.APL %altPath%>NUL
-
- echo: Copying MACODI.COM to %dstPath%\MACODI.COM...
- Copy /v %srcPath%MACODI.COM %dstPath%>NUL
-
- echo: Copying README.NET to %dstPath%\README.NET...
- Copy /v %srcPath%README.NET %dstPath%>NUL
-
- :ExplainConfig
-
- rem ---------------------------------
- rem Adjust Config.sys
- rem ---------------------------------
-
- cls
- echo: The installer can now update the Config.sys and
- echo: AutoExec.bat files to allow use of the following
- echo: features:
- echo:
- echo: * Macintosh/PC folder sharing
- echo: * CDROM Drive
- echo: * Macintosh/DOS Copy & Paste
- echo:
- echo: If you choose not to update these files, you will
- echo: need to make the changes manually before using the
- echo: special features.
- echo:
-
- :PromptMacShare
-
- echo: Install Macintosh/PC folder sharing? (Y/N)
-
- %srcPath%GetKey "YN" 0
- if errorlevel 2 goto PromptCDROM
- if errorlevel 1 goto InstallMacShare
- goto PromptMacShare
-
- :InstallMacShare
-
- rem ---------------------------------
- rem Install MacShare in AutoExec.bat
- rem ---------------------------------
-
- echo: Installing MacShare...
- %srcPath%StripAdd %autoexec% "MacShare" "LH %dstPath%\MacShare" %aeFlag%
- set aeFlag=1
-
- :PromptCDROM
-
- echo: Install CDROM software? (Y/N)
-
- %srcPath%GetKey "YN" 0
- if errorlevel 2 goto PromptDOSClip
- if errorlevel 1 goto InstallCDROM
- goto PromptCDROM
-
- :InstallCDROM
-
- rem ---------------------------------
- rem Install CDROM in Config.sys and AutoExec.bat
- rem ---------------------------------
-
- echo: Installing CDROM...
- %srcPath%StripAdd %cfgsys% "CDROM" "DEVICE=%dstPath%\CDROM.SYS /D:CDDRVR" %csFlag%
- %srcPath%StripAdd %autoexec% "MSCDEX" "LH C:\DOS\MSCDEX /D:CDDRVR /L:E" %aeFlag%
- set aeFlag=1
- set csFlag=1
-
- :PromptDOSClip
-
- echo: Install Macintosh/DOS Copy & Paste? (Y/N)
-
- %srcPath%GetKey "YN" 0
- if errorlevel 2 goto DoneConfig
- if errorlevel 1 goto InstallDOSClip
- goto PromptDOSClip
-
- :InstallDOSClip
-
- rem ---------------------------------
- rem Install DOSClip in AutoExec.bat
- rem ---------------------------------
-
- echo: Installing DOSClip...
- %srcPath%StripAdd %autoexec% "DOSClip" "LH %dstPath%\DOSClip" %aeFlag%
- set aeFlag=1
-
- if not (%tmp%)==() goto DoneConfig
-
- rem ---------------------------------
- rem Make a temp folder and assign
- rem tmp environment variable
- rem ---------------------------------
-
- mkdir %tmpPath%>NUL
- %srcPath%StripAdd %autoexec% "Tmp=" "set tmp=%tmpPath%" %aeFlag%
- set aeFlag=1
- echo:
-
- :DoneConfig
-
- rem ---------------------------------
- rem Tell 'em that configuration
- rem is complete
- rem ---------------------------------
-
- echo:
- echo: Changes to Config.sys and AutoExec.bat are complete.
- echo: The changes will not take effect until the PC is restarted.
-
- :GoodInstall:
-
- rem ---------------------------------
- rem Report that we're happy
- rem ---------------------------------
-
- echo:
- echo: Installation Complete.
- goto End
-
- :AbortInstall:
-
- rem ---------------------------------
- rem Report that we're sad
- rem ---------------------------------
-
- mkdir %dstPath%>NUL
-
- echo: Copying HW.INF to %dstPath%\HW.INF...
- Copy /v %srcPath%HW.INF %dstPath%>NUL
-
- echo: Copying WinSetup.bat to C:\WinSetup.bat...
- Copy /v %srcPath%WINSETUP.BAT C:\>NUL
-
- echo:
- echo: Run the "WinSetup" batch file when you are ready to
- echo: install Windows.
- echo:
-
- :End
-
- rem ---------------------------------
- rem Cleanup our variables
- rem ---------------------------------
-
- set srcPath=
- set dstPath=
- set aeFlag=
- set csFlag=
- set tmpPath=
- set cfgsys=
- set autoexec=
-